<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>
        let arr = [1,2,3];

        let [a,b,c,d] = arr;

        console.log(a);
        console.log(b);
        console.log(c);
        console.log(d);
        console.log(arr)

        let [f,g,h,...others] = arr;
        console.log(f);
        console.log(others)

        arr.push(5);
        console.log(arr)

    </script>
</head>
<body>



</body>
</html>